package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.ButcheVolume;
import com.antdesignbackend.backend.entity.entityVo.ButcheVolumeVo;
import com.antdesignbackend.backend.mapper.ButcheVolumeMapper;
import com.antdesignbackend.backend.service.ButcheVolumeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ButcheVolumeServiceImpl extends ServiceImpl<ButcheVolumeMapper, ButcheVolume> implements ButcheVolumeService {
    @Autowired
    ButcheVolumeMapper butcheVolumeMapper;
    @Override
    public List<ButcheVolumeVo> search(@Param(Constants.WRAPPER) QueryWrapper<ButcheVolumeVo> butcheVolumeVoQueryWrapper, Page<ButcheVolumeVo> butcheVolumeVoPage){
        return butcheVolumeMapper.search(butcheVolumeVoQueryWrapper,butcheVolumeVoPage);
    };
    public Integer count(@Param(Constants.WRAPPER) QueryWrapper<ButcheVolumeVo> butcheVolumeVoQueryWrapper){
        return butcheVolumeMapper.count(butcheVolumeVoQueryWrapper);
    };
}
